package com.flower8.dao;

import com.flower8.utils.PageData;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: tanglin
 * @Date: 2020/3/26 15:17
 * @Version: 1.0
 */
@Repository
public interface PlusDao {

    /**
     * 查询plus会员套餐列表
     * @param pd
     * @return
     * @throws Exception
     */
    List<Map> getPlusGoodsList(PageData pd)throws Exception;

    /**
     * 查询plus会员套餐列表数量
     * @param pd
     * @return
     * @throws Exception
     */
    int getPlusGoodsCount(PageData pd) throws Exception;

    /**
     * 根据plus会员套餐ID查询
     * @param id
     * @return
     * @throws Exception
     */
    Map getPlusGoodsById(long id) throws Exception;

    /**
     * 修改plus会员套餐
     * @param param
     * @throws Exception
     */
    void updPlusGoods(Map param)throws Exception;

    /**
     * 新增plus会员套餐
     * @param param
     * @throws Exception
     */
    void addPlusGoods(Map param)throws Exception;

    /**
     * 删除plus会员套餐
     * @param id
     * @throws Exception
     */
    void delPlusGoods(long id)throws Exception;
}
